#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_btn_calc_clicked()
{
    int num = ui->spinbox_num->value();
    double price = ui->dspinbox_price->value();

    double sum = num * price;

    ui->dspinbox_sum->setValue(sum);
}

